<template>
	<button @click="businessIdToZero">设置为0</button>
	<button @click="businessIdToOne">设置为1</button>
	<div v-show="business.businessId == 0">v-show:0</div>
	<div v-show="business.businessId == 1">v-show:1</div>
</template>

<script>
	import {ref} from 'vue'
	export default{
		setup(){
				const business = ref({})
				const businessIdToZero = () => {
					business.value.businessId = 0;
				}
				const businessIdToOne = () => {
					business.value.businessId = 1;
				}
			return{
				business,
				businessIdToZero,
				businessIdToOne
			}
		}
	}
</script>

<style>
</style>